package com.zhang.factory.method;

public class TeslaFactory implements CarFactory{

    @Override
    public Car getCar() {
        return (Car) new Tesla();
    }
}
